<extend name="./Application/Admin/View/base.html" />
<block name="title"><title><?php echo C(APP_NAME);?>PC端管理</title></block>
<block name="stylesheets">
<link rel="stylesheet" href="__PUBLIC__/assets/css/jquery-ui.css" />
</block>
<block name="stylecss">
<style type='text/css'>
    table tr td{
        width: 80%;
    }
    table tr th{
        width: 16%;
        text-align: center;
        vertical-align: middle!important;
    }
</style>
</block>
<block name="smallmenu">
<ul class="breadcrumb">
	<li>
		<i class="ace-icon fa fa-home home-icon"></i>
		<a href="{:U('Index/index')}">主页</a>
	</li>
    <li>
		<a href="{:U('Exam/index_online')}">线上考试跟踪</a>
	</li>
	<li class="active">查看考试详细信息</li>
</ul><!-- /.breadcrumb -->

<!-- #section:basics/content.searchbox -->
<div class="nav-search" id="nav-search"></div><!-- /.nav-search -->
</block>
<block name="content">
<div class="space-6"></div>
<div class="row" style="margin-bottom:7px">
    <div class="col-xs-12"><span class="label label-success label-lg arrowed"> 考试详情 </span></div>
</div>
<table class="table table-striped table-bordered table-hover" >
    <tr>
        <th>考试编号</th>
        <td>{$exam_arr.exam_num}</td>
    </tr>
    <tr>
        <th>专业</th>
        <td><?php if ($exam_arr['exam_major_id'] == 1): ?>
					电吉他
				<?php elseif ($exam_arr['exam_major_id'] == 2): ?>
					爵士鼓
				<?php elseif ($exam_arr['exam_major_id'] == 3): ?>
					电贝司
				<?php endif ?></td>
    </tr>
    <tr>
        <th>专业等级</th>
        <td>{$exam_arr.exam_level}级</td>
    </tr>
    <tr>
        <th>获取回看地址状态</th>
        <td>{$video_status}</td>
    </tr>
    <tr>
        <th>回看地址</th>
        <td>
        <foreach name="video_arr" item="v">
        <a href="{$v.filePath}" target="_blank">回看文件{$v.fileName}</a>
        <br>
        </foreach>
        </td>
    </tr>
    <tr>
        <th>考试时间</th>
        <td>{$exam_arr.exam_ymd}&nbsp;&nbsp;{$exam_arr.examtime_time}</td>
    </tr>
    <tr>
        <th>报名时间</th>
        <td>{$exam_arr.exam_applytime|date="Y-m-d H:i:s",###}</td>
    </tr>
    <tr>
        <th>报名费</th>
        <td>{$exam_arr.exam_cost}元</td>
    </tr>
    <tr>
        <th>缴费状态</th>
        <td><?php if ($exam_arr['exam_paystatus'] == 1): ?>
					<span style="color:red">未付款</span>
				<?php elseif ($exam_arr['exam_paystatus'] == 2): ?>
					<span style="color:green">已付款</span>
				<?php endif ?></td>
    </tr>
    <tr>
        <th>考试状态</th>
        <td><?php if ($exam_arr['exam_status'] == 1): ?>
					<span style="color:orange">报名成功</span>
				<?php elseif ($exam_arr['exam_status'] == 3): ?>
					<span style="color:green">已完成考试</span>
				<?php endif ?></td>
    </tr>
    <tr>
        <th>考试结果</th>
        <td><?php if ($exam_arr['exam_result'] == 1): ?>
				<span style="color:orange">等待考试结果</span>
				<?php elseif ($exam_arr['exam_result'] == 2): ?>
				<span style="color:green">考试通过</span>
                <?php elseif ($exam_arr['exam_result'] == 3): ?>
                <span style="color:red">考试未通过</span>
                <?php elseif ($exam_arr['exam_result'] == 4): ?>
                <span style="color:blue">考试已过期</span>
				<?php endif ?></td>
    </tr>
    <tr>
        <th>考官评价</th>
        <td>{$exam_arr.exam_comment}</td>
    </tr>
    <tr>
        <th>监考费用</th>
        <td><?php if ($exam_arr['exam_income']): ?>
					{$exam_arr.exam_income}元
				<?php endif ?></td>
    </tr>
</table>
<div class="space-6"></div>
<div class="row" style="margin-bottom:7px">
    <div class="col-xs-12"><span class="label label-warning label-lg arrowed"> 考生详情 </span></div>
</div>
<div class="space-6"></div>
<table class="table table-striped table-bordered table-hover" >
    <tr>
        <th>迷笛 ID</th>
        <td><?php echo formatNO($exam_arr['exam_user_id'],6);?></td>
    </tr>
    <tr>
        <th>姓名</th>
        <td><?php echo $exam_arr['user_name'];?></td>
    </tr>
    <tr>
        <th>手机号</th>
        <td><?php echo $exam_arr['user_phone'];?></td>
    </tr>
    <tr>
        <th>性别</th>
        <td>
            <if condition="($exam_arr['user_sex'] eq 1)">
            男
            <else />
            女
            </if>
        </td>
    </tr>
    <tr>
        <th>生日</th>
        <td><?php echo $exam_arr['user_birthday'];?></td>
    </tr>
    <tr>
        <th>身份证</th>
        <td><?php echo $exam_arr['user_idcard'];?></td>
    </tr>
    <tr>
        <th>民族</th>
        <td><?php echo $exam_arr['user_nation'];?></td>
    </tr>
    <tr>
        <th>国籍</th>
        <td><?php echo $exam_arr['user_country'];?></td>
    </tr>
    <tr>
        <th>身份证地址</th>
        <td><?php echo $exam_arr['user_idaddress'];?></td>
    </tr>
    <tr>
        <th>证书邮寄地址</th>
        <td><?php echo $exam_arr['exam_certaddress'];?></td>
    </tr>
</table>
<div class="space-6"></div>
<div class="row" style="margin-bottom:7px">
    <div class="col-xs-12"><span class="label label-purple label-lg arrowed"> 考官详情 </span></div>
</div>
<div class="space-6"></div>
<table class="table table-striped table-bordered table-hover" >
    <tr>
        <th>迷笛 ID</th>
        <td><?php echo formatNO($examiner_arr['user_id'],6);?></td>
    </tr>
    <tr>
        <th>姓名</th>
        <td><?php echo $examiner_arr['user_name'];?></td>
    </tr>
    <tr>
        <th>手机号</th>
        <td><?php echo $examiner_arr['user_phone'];?></td>
    </tr>
</table>
<div class="space-12"></div>

<button type="button" class="btn btn-sm btn-light" onclick="location.href='{$_SERVER[HTTP_REFERER]}'"><i class="ace-icon fa fa-arrow-left"></i> 返回</button>

</block>
<block name="scripts"></block>
<block name="jscript">
<script script="text/javascript">
    $(function(){
        $('#menu_exam').addClass('active open');
        $('#menu_examonline_list').addClass('active');
    });
</script>
</block>